import { createRouter, createWebHashHistory, type RouteRecordRaw } from 'vue-router'
import AiChat from '../components/AiChat.vue'
import HelloWorld from '../components/HelloWorld.vue'
import DocLinter from '../components/DocLinter.vue'

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    redirect: '/aichat'
  },
  {
    path: '/aichat',
    name: 'AiChat',
    component: AiChat
  },
  {
    path: '/helloworld',
    name: 'HelloWorld',
    component: HelloWorld
  },
  {
    path: '/doclinter',
    name: 'DocLinter',
    component: DocLinter
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router 